Stop reading stderr on exception.