cps-tools: Fix bug when stopping service (issue #77)