More robust error handling when no network present.