Add ?TRAPEXIT to find out what's going on.