Do not attempt to close closed cursor

Some Cursor implementations may come with some ISE when trying to close them again. In fact - closeQuietly should check if Cursor is still opened before trying to close it.