Added 'close hook.