a little cleanup before closing..