[Core] Improved msbuild build host crash handling

If the msbuild host crashes, dispose the local proxy, so that the next
msbuild operation will create a new host.

Partially fixes bug #22276.