Fixed issues:

#342: vs stops responding when attaching to process while debugging
#341: Visual Studio Stops responding when refreshing attach to process list after detaching and re-attaching device