refs #5297 make sure plugin is deactivated before uninstalling