added try/except around connecting and disconnecting
Merge branch 'master' of github.com:jochem/Python-EPP