if (master != null) {
AbstractTypeServerPluginContainer pc = master.getPluginContainerByPlugin(pluginKey);
if (pc != null) {
try {
pc.unschedulePluginJobs(pluginKey);
} catch (Exception e) {
// even though we can't unschedule jobs, keep going, assume success if the PC disabled it
log.warn("Failed to unschedule jobs for plugin [" + pluginKey + "]", e);
}
try {