Catch error msg at httpwebrequest. Send version info to broker side.
Merge pull request #243 from AzureAD/fix_exception

Catch error msg at httpwebrequest. Send version info to broker side.