Fixed #225, now shutdown_test_server waits for app_running? to return false
or throws an exception otherwise.