All the scripts should immediately error out when it tries to start the server on it a used port, not when it fails to connect to the web server.