Update documentation for onClose handler