Restore terminal screen control on exception

Solves issue for me (and I think others) where an exception in the eventloop caused the terminal session to be unresponsive after program crash. After crash user input (typing) would no longer be visible in terminal and scrolling and text selection would not function.

This slight tweak makes sure on unexpected exception in event_loop the screen control is released properly.