Remove event listener so it stops listening to events