Thwip! It seems that not all of the guards are completely inattentive; one spots him, as he's leaving, and takes a shot at him with his crossbow, though the attack likely misses him. (17 vs. AC, 5 damage if it connects.) He doesn't raise an alarm, likely thinking it was a local thief, escaping from some heist elsewhere.