database should be closed after sending record content

database is closed before we send the record content to the client,
and we get an exception like this:
2013-06-28 15:21:34:305 SEVE Internal server error:
com.orientechnologies.orient.core.exception.ODatabaseException: Database 'local:/orientdb/databases/tinkerpop' is closed [ONetworkProtocolHttpDb]