if connectionclosed, we die
Merge pull request #36 from ybrs/master

if connectionclosed, we die