Ignore error when closing read side of socket after closing write side

On Mac OS X, shutdown(SHUT_RD) fails if the write side on the other side has
been closed. Fixes #1.