Nice solution - I was looking for a "BeforeClose" or "Close" event; no wonder I didn't find it