connect.c: handle errors from split_cmdline