To ensure the Level agent is always running, a scheduled task is created that checks the service periodically. If for any reason the Level service is not running, the task will restart the service and log the exit event.
A scheduled task ensures the Level agent is always running by periodically checking and restarting the service if needed.