remove complains when connection is already closed
Merge pull request #11 from marmolejo/patch-01

remove complains when connection is already closed