Only destruct if EG(active) in zend_shutdown(). (bug #65463, #66036)