efficiently detect a player disconnecting without the player having to rejoin

what do you think is the best way to do this? (for context: minecraft.custom:minecraft.leave_game scoreboard criteria would not be suitable in my case)
Continue to help post