Bug fix

When a solution which doesn't have a unit test project was opened,
during test discovery, the test discoverer used to throw an unhandled
exception.
Also, made changes to use Begin-EndWaitForConnection instead of a
synchronous call