Check exit code in launchCommand()