switch back to using the safe routines after tty port exits on Windows console tty port. Fixes H7758 1613