Added feature: stop a running service instance and corresponding unittests