Fixes a bug where stopReplying and stopComplying would unregister the wrong events.