Clean up events.