you need to handle the exit code of the embedded application, to reutnr it as the exit code of the command