Use lexical binding.
Cannot check if service started/stopped.

There might be marked services.
Skip defining variable to avoid compiler warnings.
Stop service before marking as done.
Define statuses in sandbox.
Run tests in sandbox.
Improve stop service function.

Function will now start a timer and check each second if the process has
stopped or not and update status accordingly.
Improve start/stop/restart commands.