Removing event listeners.