fix command line interface broken by gui stop