Deactivated plugins now unregister commands and events.