Stop eventmachine when the server closes the connection