cleaning up event handling references.