introduce missing removeRegistry() method in the API
tasks may be cancelled only if rollback is in progress
refactoring method names doBegin/doEnd => setClassLoader/unsetClassLoader