options (alt+o) > connect > de-select Connect on startup

Also, I would remove the -m switch from the first connection in that script.