Trick for shutdown to work with the test program