`end()` could be renamed to `then()` `end(exitCode)` and `on('error')` could be replaced with `catch()`
end()could be renamed tothen()end(exitCode)andon('error')could be replaced withcatch()