It has been requested many times before that there be a way to determine how long a player has left before entering observer mode via script, that way it can be distinguished as safe to permit a trial to compete. It would be far from ideal but at least an improvement.