Not using brake like this in the first place? See my previous proposal on this topic: one, two.
brake