Moved network errors to an IOError (should be the only thing that raises an IOError).