close properly some cursor