wrap runtasks in an atomic transaction
Merge pull request #2 from nealclark/master

Wrap runtasks in an atomic transaction