Fix to star/stopping the service.

Fixes #385