Clean up logging of sent messages
Use SendRawf instead of writing directly to the write channel