public close() as Void
Closes the terminal and terminates the child process if it is still alive.
pty.close()