pub fn new_supervised_state() -> (SharedState, Sender<ProcessControlCommand>, Receiver<ProcessControlCommand>)