markdown_preview: close when surf exits