[socks] Refine exception model for better error handling