Disconnecting from the terminal

Use the Disconnect from Terminal (terminalDisconnect) command to disconnect from a connection with the terminal.

You need to add this command to your script even if you started the connection through the recorder or added a connection command manually to the script.