Checks for session.isClosed occur in the full server and localserverconnection, but not when using a remote jdbc connections to an embedded server.