MainView: Don't stick when stopping ai thread