Hi,
This thread (Fail Fast) may be of interest. Not precisely what you want, but might provide some inspiration…
regards
Rob