return exit code in deploy