Hardening and termination of long-duration γ rays detected prior to lightning.