(#1112) - Closing db causes a crash in leveldb even if changes have been...

Was getting a crash in the levedb adaptor when opening and closing a db even if changes had been cancelled. The cancel can happen before any data is read from leveldb so it needs to check when data is returned whether it has already been cancelled.