Debugger: During callback processing, handle the COMException "Process was terminated. (Exception from HRESULT: 0x80131301)".

The exception occurs if a process is killed (e.g. console window of console application closed) while the application is doing something involving debugger callbacks (Debug.WriteLine calls, or throwing+handling exceptions).