trap "echo Not shown" EXIT
(exit)  # must be silent
trap "echo Once; exit" EXIT
{ exit; }