Added exception handling for network timeouts