Do not call terminate() in ShellInputThread::run(). This fixes hang on exit when running without console.