added terminate parameter for shutdown methods of services

added terminate parameter for shutdown methods of services, so as to prevent clean-up before shutdown.