Operations on the raw socket can throw exceptions if it's no longer connected.