Fix a type error
Handle subtty destruction event and then re-focus main window
Update TFF