Fix exitASAP handling when false, close #1259