Close connection after receiving

Newer versions of netcat hang until the connection is closed
Merge pull request #1 from Azelphur/patch-1

Close connection after receiving