Close not the program but the tab using the keyboard shortcut Ctrl+W. At the moment, the program is being closed instead.