closing the cursor....