facebook/tornado — pull request #944 by anton-ryzhov (2013-11-25 15:48:09+00:00)
Title: Reset state on `start()` end

I've moved state and flags restoration into try-finally block.

Useful when KeyboardInterrupt, SystemExit errors is raised or exit() function is called inside handlers.