use close instead of shutdown

as explained in
http://stackoverflow.com/questions/4160347/close-vs-shutdown-socket
and
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html#closedown
bidirectional shutdown offers no advantages over close and still requires it.