Ask user before close diagram