destructor for cursor (prevents leaks especially for mars cursors) version 1.1.2