Redirect socket error to output.