Cleanup transmit_ for handle_register and keepalives