set state to DEACTIVATING during deactivation
add plugin state change events to dependency manager