'Close current project and return to a window without an active
project'

def close_project(self):

    if self.current_active_project:
        path = self.current_active_project.root_path
        self.set_project_filenames(self.editor.get_open_filenames())
        self.current_active_project = None
        self.set_option('current_project_path', None)
        self.setup_menu_actions()
        self.sig_project_closed.emit(path)
        self.pythonpath_changed.emit()
        self.dockwidget.close()
        self.explorer.clear()
        self.restart_consoles()
