Add: basic handling of network errors and timeouts.