This fixes some crashes when StdReadErrThread is still running (an producing lots of data, e.g., when there are lots of CRLF warnings) and a dialog is closed using the x-button. It's a condition where the CGit:.Run-thread is terminated and the StdReadErrThread still running and, thus, accessing invalid memory.
https://drdump.com/Problem.aspx?ProblemID=199214
@all Unsure whether to put this in TGit 2.2.0. Trying to put this in a preview release first to get some insights.