PIM-2060: Exit with error code