make sure the exit code is 0 on success