Ensure event bindings are cleaned up on destruction.