Add some error checking after $objservice.stop - it may provide a clue.