Replace maximized dotted outline with top-right-corner indicator icon. Fix a bug where a broken pipe notification could be received by PTYSession between -hardStop and -dealloc, and a dangling textview pointer would be dereferenced. Fix assertion when unmaximizing.