Do not close the connection on error when fd is stdin
Merge pull request #73 from choplin/do_not_close_stdin

Do not close the connection when fd is stdin