fixes up the usage of the Repository.cs class since it is not disposing of the web service correctly.