some more 'onClose' hooks