Add friendcode for terminate_stream wiring event