This function stop the working thread of the service.
The function tell Scheduler to stop working.
Service Class | uws Namespace | Scheduler