Use service instead of thread.