Run worker in a thread