the stealth mode doesn't help if the enemy is looking at you (meaning that you try to get them directly from front) and the timer stops if they spot you, that means that you need to flag them again to finish the mission.