add -h and --help options to server.js
catch and report exceptions that occur while rendering in the thread pool