How to stop events.