Minimal fix for uart-related crash (tessel/beta#285).
Minimal fix for uart-related crash (tessel/beta#285).

Should still reset the UART and other hardware and clean up their events
after the program exits.

tessel/t1-firmware,tessel/t1-firmware,tessel/t1-firmware,tessel/t1-firmware,tessel/t1-firmware