Currently logs.ts uses console.error + process.exit(1) instead of handleError, functions/invoke.ts is too. It's better to unified error handler.