Adding shutdown to test app