This is Windows-specific, but could makemkvcon call `SetThreadExecutionState` at the start and end of a rip to prevent the machine from sleeping while a rip is in progress?
I believe the code would be exactly the example on https://learn.microsoft.com/en-us/windo ... utionstate