If you want to stop the recording, but do not want to terminate the stream then..
Just know the config Id of the record process you initiated, then call this command in telnet api:
removeconfig id=(config id of the record process)
This way, the stream will still be running in the background, but the recording will stop.