Missing sanity check in autoclose.