Bugfixing invalid stream socket close
Merge pull request #2 from wagnert/master

Bugfixing invalid stream socket close