Unfortunately the exception comes from the platform's socket, so I can't rely on a predictable message. Added a comment.