handle close; use real config