One of the cases are mentioned by @Copilot #674 (comment)_
But the problem is more general: there is no clear definition how hid_exit and hid_deregister_callback are related to each other: should hid_exit automatically deregister all callbacks or should user be forced to deregister all callbacks before hid_exit?