Exception and network error handling