Correctly return HTTP 500 on uncaught exception pages, and also display tracebacks for nested exceptions.