Close connection after receiving

Hey, I never noticed this fork, nice work! :)

You can consider all of my code GPL, forks and patches are welcome, I'd love to see some of the stuff you've implemented upstream.

In other news, newer versions of netcat hang until the connection is closed, so here's a small patch to close the connection when a line is received.