Print message when connection failed to server
improve error handling for command serve