Fixed issue that file as locked by another process