Auto-close the preview window.