Add timeout handling logic for pvoutput