New closeout script, now with less potentially catastrophic consequences