end Function - Method to call when the task has ended. If never called, the service won't terminate while otherwise idle.
end
Initiate a task to keep the service worker alive until ended.