Stopping both thread successfully