Text this: Modular Termination for Second-Order Computation Rules and Application to Algebraic Effect Handlers