Error handling

Error handling for server connection error