UART devices can be manually suspended at runtime using shell commands:
uart:~$ pm suspend uart@9000 # Suspend UART0
uart:~$ pm suspend uart@8000 # Suspend UART1
Note
After suspending the UART you are using for the shell, you will not be able to send further commands until the device is reset or the UART is resumed through other means.