Fixed ability to close terminal windows