wrap call in bracket to promptly close connection on exception
Merge pull request #3 from wrl31415926536/master

wrap call in bracket to promptly close connection on exception