Correctly cancel events