introduced client.ConnectionError to help exception handing.
ignoring emacs dir-locals.
fixed compatibility with tornato 3.x