onClose handler initiated.