Working recorder, see if process.terminate properly close the stream