Clean up event handlers so we can be garbage collected.