Don't register QueuedJobService shutdown when running tests

Causes a big SQL failure at the end of a dev/tests run, because
there's no database available to run the shutdown database query.
Merge pull request #6 from halkyon/onshutdown_during_tests

Don't register QueuedJobService shutdown when running tests