PLATFORM-390 Disconnects are properly handled by running queries