Canceling out of app.command.ImportSpriteSheet

Is there a way to know of the user canceled out of the app.command.ImportSpriteSheet ui? I tried checking a return value, but it doesn’t seem to matter.

local ok = app.command.ImportSpriteSheet { ui=true, ... }

Thanks