Great tip: didn't know about user-definable Context_Info.
I'm a minimalist, though....
instead of 4 lines:
DECLARE @Cinfo VARBINARY(128)
SELECT @Cinfo = Context_Info()
IF @Cinfo = 0x55555
RETURN
The following seems to work as well:
IF (Context_info() = 0x55555) return
Cheers