For the examples in the repository, when supporting Node.js 12, we can use --unhandled-rejections flag to exit in case of an unhandled promise rejection and simplify the examples code.