clean up exception handling on asio / sockets