Just refactoring
Handling network exceptions