added a small delay between doQuit and doConnect, in a attempt to allow the connection to terminate before trying a new connection.