Allow unregistering a callback.