coming from #4319 (reply in thread) - the Terminal.reset call does not finish the re-initialization synchronous.
possible fixes:
Either make it a promise (rather a quickfix and with ugly API change), or revisit the code paths, that are not ready yet when returning synchronously from the method and execute them in sync.