Stopping a timeline when trace is false

Try this, does it work?

All the best.