Added process.exit in case of error