Adding some asserts on exit codes.