Break out task running functionality into a lib. Start on nospawn option.