The UART disable code was causing a hang and was worked around with a