this post seem irrelevant. So you want an auto close feature Yet you dont seem to comprehend why you are fishing in the first place.
The solution is to make the shitty rifts decent or good. add density and and edit corridors in caves to be wider. which they are doing. The point is to fix the issue not put a bandaid over it and call it a day.