Consume stdout/stderr before finish