Fix #525 FetchHandler's marker file throws file in use exception
Fix FxCop error in CustomGitRepositoryHandler