Fix poison data

I discovered that sending bad data to the server would crash the main thread, leaving the flush thread to run, which is kind of useless, as no new data could be submitted.