Catch all socket errors.

Apparently, there's a larger list of errors than I thought...