seems that you don't need process.exit at all, just throw formatted error in `catch` block