Socket support now includes error handling for broken pipes