tasks may be cancelled only if rollback have been requested
refactoring method names doBegin/doEnd => setClassLoader/unsetClassLoader