Added __del__ to CursorMock in order to avoid many exceptions