log instead of print_endline
clarify exception here
don't send empty messages
adapt to OTR API changes