The build does not terminate immediately after completion.

I upload the Unity project’s Library folder to a network shared disk and use it as a symbolic link on multiple computers to optimize storage when building. There is a significant difference in build time when the Library folder is local compared to when it is on the network shared disk.

After examining the logs, I found that after the Unity build finishes and the message ‘Batchmode quit successfully invoked - shutting down!’ is printed, there is a 10-30 minute wait time.

Why does this wait time occur, and is there a way to resolve it?

2024-05-16T08:00:48.6105860Z Asset Pipeline Refresh: Total: 4.892 seconds - Initiated by RefreshV2(NoUpdateAssetOptions)
2024-05-16T08:00:48.6106740Z Summary:
2024-05-16T08:00:48.6107140Z Imports: total=0 (actual=0, local cache=0, cache server=0)
2024-05-16T08:00:48.6107730Z Asset DB Process Time: managed=0 ms, native=4892 ms
2024-05-16T08:00:48.6108250Z Asset DB Callback time: managed=0 ms, native=0 ms
2024-05-16T08:00:48.6108910Z Scripting: domain reloads=0, domain reload time=0 ms, compile time=0 ms, other=0 ms
2024-05-16T08:00:48.6109620Z Project Asset Count: scripts=13920, non-scripts=24484
2024-05-16T08:00:48.6110160Z Asset File Changes: new=0, changed=0, moved=0, deleted=0
2024-05-16T08:00:48.6110630Z Scan Filter Count: 1
2024-05-16T08:00:48.6111000Z InvokeBeforeRefreshCallbacks: 0.000ms
2024-05-16T08:00:48.6111430Z ApplyChangesToAssetFolders: 0.139ms
2024-05-16T08:00:48.6111820Z Scan: 4885.491ms
2024-05-16T08:00:48.6112220Z GatherAllCurrentPrimaryArtifactRevisions: 0.610ms
2024-05-16T08:00:48.6112700Z UnloadStreamsBegin: 0.584ms
2024-05-16T08:00:48.6113030Z UnloadStreamsEnd: 0.225ms
2024-05-16T08:00:48.6113350Z Untracked: 5.322ms
**2024-05-16T08:00:48.6124040Z Batchmode quit successfully invoked - shutting down!**
**2024-05-16T08:09:54.1966600Z Thread 0x16d8a7000 may have been prematurely finalized**
2024-05-16T08:09:54.9036580Z [Licensing::IpcConnector] License Notification channel disconnected successfully.
2024-05-16T08:09:54.9046930Z [Licensing::IpcConnector] License Client channel disconnected successfully.
2024-05-16T08:09:55.0084980Z AcceleratorClientConnectionCallback - disconnected - 192.168.1.254:10080
2024-05-16T08:09:55.0086860Z Thread 0x310087000 may have been prematurely finalized
2024-05-16T08:09:55.1093200Z Cleanup mono