Redirect stdout/stderr through the logging system.
This change also causes the uncaptured output of subprocesses to
be routed to the logging system for recording in the session
transcript.
<html>
<head><title>Something went wrong</title></head>
<body>
We ran into a problem while serving your request, please try again.
</body>
</html>