Make test and test cases exit with reason :shutdown

This guarantees OTP processes are properly shutdown when
the test finishes.