process.exit on stdout error; closes #6