__destruct cannot be trusted because script might destroy the object before the end of the script.