Cancel events if disabled.