better way to indicate reconnection, working with TornadoMainloop