slog_send and slog_send_message create a thread to send the packet, but the thread is exited after sending. Instead the thread should be alive the whole time and wait until a new log arrives...