cleaning up after crashed Markdown editor