Close connection after receiving

Newer versions of netcat hang until the connection is closed