SONAR-4898 simplify MonitoredProcess implementations