unregister cursor observer

root cause of accessing cursor after close