Exit when the user closes the tab (for -w).