JsonMappingException on server when client closes connection #3.

Fix for #3