* Properly close all elements.