Refactoring and added exception when server is offline