In many programming languages, "namespaces" are not directly intended to support an initialization process nor a finalization process, and are therefore not equivalent to modules.
Finalization is formally complementary to initialization, which is the part of object creation that follows allocation, but differs significantly in practice see contrast with initialization.
In some cases both techniques are combined, using an explicit dispose method, but also releasing any still-held resources during finalization as a backup.