Do not close cursor that is still in use