added handling for network/server outage.