Show an error if Node exits with rejection

If there is at least one outstanding error when Node exits, throw that
error.

Fixes #115 as recommended by @tlrobinson.