Check for offline scenario and exception handling