Ensured that no exceptions are thrown out of destructors.