cleanup of 'export to png' dialog
new diagram, close diagram, exit