Clean up event handling graph