This got lost somewhere along the way. Importantly, we need to explicitly set the pty to use invalid stdio handles for the spawned child in order to avoid a weird situation where eg: cmd or powershell would end up writing to the log file despite it being spawned into its own PTY. refs: #1358