stop

fun stop()

Stops the service and the associated thread.

To dispose everything call unregister