Cleaning up modal DOM elements.