handle connection errors properly
Merge branch 'master' of github.com:mgrechukh/PyMySQL