code formatting
Handle when service is down