Bug fix for warning "IOException: Sharing violation on path …" on Unity 4. New .NET runtime needs the file to be closed before calling AssetDatabase.Refresh.