release port used by serial terminal

Hi,
how to release the serial port.
happens after closing the terminal window before exiting the serial terminal


marcelo@POP-MTL-PPPOE1] > /port/pr
Columns: NAME, CHANNELS, USED-BY, BAUD-RATE

NAME CHANNELS USED-BY BAUD-RATE

0 serial0 1 serial-terminal auto
1 serial1 1 auto
[marcelo@POP-MTL-PPPOE1] > /system/serial-terminal serial0
serial-terminal already running on this port
[marcelo@POP-MTL-PPPOE1] >

To close the terminals left open by mistake:

/system script job remove [find where type=command]

To enable/disable the link between internal console and serial port:

# ENABLE
/system console
set [ find port=serial0 ] disabled=no

# DISABLE
/system console
set [ find port=serial0 ] disabled=yes