add missing kernel_manager in mainwindow.close_tab