check exit conditions for TContinue in side effect handler (closes #3115)