Graceful HttpServer shutdown for test that cancels download.