Improved tornado async routines and shutdown routines.
Merge remote-tracking branch 'upstream/dev' into testing