Fix Ctrl+D Crashes and Freezes (#296)

Cleaned version of https://github.com/p-e-w/finalterm/pull/306
This means that the `FinalTerm` class cannot safely be instantiated multiple times any more, which while not critical is definitely a disadvantage.