Add support for terminating running jobs.

This doesn't *really* solve the problem, but it will with further
work that is coming soon.  Closes #72, see the discussion there.