MDL-44604 fix task cleanup in plugin uninstallation