Clean up the event listeners