When the program encounter network error it fails and crashes. I need some try-except to handle them without crashing