Make a thread and handle its life cycle