- Removed 'set -e' so a failing metric collection command doesn't kill the agent process - Added '|| true' to every command in collect_metrics() to prevent pipeline failures - Fixed push_metrics() to capture curl exit code with 'local code; code=$(...) || code=0' - The agent now keeps running even if individual metrics or push fail