update MultiThreadedService for shutdown