Added error handling around removal of the ClearSCript installer reference