Fix Ctrl+D Crashes and Freezes (#296)

Cleaned version of https://github.com/p-e-w/finalterm/pull/306
You were missing nothing, that is correct. I just conserved the approach used before, probably unnecessarily. I changed that in the new commit as well.