Fix shutdown

Some minor fixes and cleanup for service shutdown:

* Use correct node name when stopping the node
* Handle `ok` returned by `init:stop()`
* Minor cleanups