Revert "Add support for extension module destructors."

This reverts commit 66073bf40a22a4c9927a427cd3794eaa6a936d1d.