Prevent shutdown on client until Sync is finished

Is there a way to prevent a windows machine from shuting down before the nextcloud client has finished syncing?

Best regards

From reading this I believe this is something that needs to be built into the desktop sync client and I didn’t find mention with a cursory search of the github repo, you might want to request the change there?