gold file api fix
invalid license says close not cancel