Graceful stop for TornadoWorker

Since there may be async callbacks and timeouts in a Tornado instance, they should be processed before stopping the ioloop unless the worker got timeout.