Ubuntu 12.04 has old version of netcat that doesn't die when stdin dies