Refactor submit subcommand about exit code