Reorganize the output headers and make printing uncaught exceptions nicer