Removed format_error for socket exceptions