Try to button up terminal port open/close. REALLY need to find a better way of marking critical I/O sections!