reassign properly zend pointers on shutdown