Changed DeleteHostedService method

Changed DeleteHostedService method