Move deactivate after is_plugin_active check.