Added exception catch so that we can debug runtime failures

Added catch of the webserver exceptions, dumping the exception trace to
stdout and to the logfile.