Added current thread to cursor closing debugging messages.