Failsafe activate when GCS AND RC are unavailable

Hello,

I’m planning on using my plane sometimes with GCS, sometimes with RC transmitter and sometimes with both. For this I would need a failsafe function that activates a failsafe when all communication (both GCS and RC transmitter) is lost. As long as one of the two options are connected to the plane, the plane should operate normally.