Added ability to close underlying connections of cursors.