Adding option to have errors sent on shutdown.
Merge pull request #75 from drewjw81/send_errors_on_shutdown

Adding option to have errors sent on shutdown.