Revert to use a Handler<byte[]> as argument for creating a telnet session to simplify flow