Fixed strange hang of crash sending on Win8.

Sometimes sending of crashes hang in our app. The proposed changes fix the issue, probably by properly releasing of resources.