Exit with error code on headless/benchmark error