Fix small error when stopping services.