Handle non-failure interruptions of work

Addresses #177
Merge pull request #233 from guidow/interrupted_tasks_handling

Handle non-failure interruptions of work