better timeout handling in EXIT and %EXIT-OTHER-THREADS