Workaround for problem in boost::asio where closed socket is reported as open.
Workaround for problem in boost::asio where closed socket is reported as open.

jgaa/restc-cpp,jgaa/restc-cpp,jgaa/restc-cpp