Catch SystemExit in CatchOutput context manager.

This allows to print stderr in the exception, instead of just the
backtrace. Mostly useful for testing scripts, in case the parameters
have changed / are incorrect.