Try to connect as client if server connection has been closed.