Protect deactivation hook