set +x after capturing exit code in env report