Asks to save before closing a tab if it is unsaved.