Also catch socket resets and try to recover