Error handling implemented in case of server availability