added exception catch for server down