var onClose, global "leak"