It seems like a thread might be dying. If I send events in quick succession they work as expected. But if I have a long delay between events I get an exception like below, which then seems to cause the plugin to restart.
Upon testing. 60s seems to be the timeout
Fails on #2: