FORGE-979 Fixed Forge plugin installation failures on Windows.

The fix was to close the Git repository before deleting the directory housing it.