Improve BTerminalIOHandler

Add writeErr() and writeLineErr() methods, writing to stderr.