A note to indicate you can't run schema commands on the slave
Merge pull request #3346 from mneedham/no-schema-on-slave

A note to indicate you can't run schema commands on the slave
Fixed issue with cancelling long running queries in server.

JsonGenerators were not properly closed in finally blocks which lead to
malformed json when queries were cancelled by the user.