Stop walking in case of opening NPC window or death