def METHOD_NAME(self, event):
    """Clicked x/close on window
    Add confirmation for closing without saving
    """
    confirm = QMessageBox.question(
        self,
        "Message",
        "Quit without saving?",
        QMessageBox.Yes | QMessageBox.No,
        QMessageBox.No,
    )
    if confirm == QMessageBox.Yes:
        self.comm.put([Signal.quit()])
        # print('Visual broke, avg time per frame: ', np.mean(self.visual.total_times, axis=0))
        print("Visual got through ", self.visual.frame_num, " frames")
        # print('GUI avg time ', np.mean(self.total_times))
        event.accept()
    else:
        event.ignore()