Suppressing LookupError: unknown encoding: latin1 on Mac 

There was a strange behavior on mac during many opened connections. So I just made a little change to suppress the error messages:

LookupError: unknown encoding: latin1
ERROR:tornado.application:Exception in callback <functools.partial object at 0x10851a208>

You won't get this error anymore whenever you run any stress-test.