TRUNK-3912 Task does not turn off automatically when uninstalling the module associated with it

https://issues.openmrs.org/browse/TRUNK-3912