Save folded regions on HIDE close.