Remove DOM elements when disposing.