when running commands on the build container, make sure the exit code is printed in the last line, and not earlier