Fix bug where shutdown-on-error cannot be called during init
Change test exception to `Throwable`

This ensures that we are correctly handling `Error`s, as well as `Exception`s.
Merge pull request #128 from cprice404/shutdown-on-error-fails-during-init

Fix bug where shutdown-on-error cannot be called during init