Fix service killing not clean problem.