Refs. #27. Handle timeouts and other errors.