#538 prevent destructors from throwing exceptions