Stop considering more handlers after we've found one

As it is, there is no overlap between handlers, but we were still
evaluating them after we'd found the correct one to apply.

It would be nice to order the handlers by expected frequency of their
applicability.