Redirecting stdout/stderr to catch exceptions external to our code.