Do not return from within a TRY/CATCH/ENDTRY because this will make the except stack invalid, and will lead to a crash. In this case it was when doing compare functions on a FT_PROTOCOL.