Make emulator restore terminal state when it exits normally
Make emulator restore terminal state when it exits normally

I had code to restore it when it was killed with ctrl-C, but not
in the clean shutdown case.

jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor,jbush001/NyuziProcessor