Use an exception to get destructors called.