How about testing the @TsSesion macro to exit early on ? See docs/chm for further information.