Corrected process.exit using allfail variable