Generate SH script to run all tests

Switching Ruby from Rake turns out not to work, generate a shell script
instead.
Log reason of shutdown
Merge pull request #137 from appsignal/log_shutdown_reason

Log reason of shutdown