Fixed a bug with the server exiting after receiving a ping message.