Improve serialization exception reporting in Gremlin Server.

Return better responses to the client.  Kill serialization loop cleanly if an error occurs. Write an integration test for this case.