update to async command to clear the subcommands when it is cancelled