Added really basic error handling to the service script