fix race with sending webirc, add debug logs