Fix: Send errors async and shutdown afterwards
In some cases the program exits before the error can be sent. This change ensures the error is sent asynchronously and shuts down the executor when the thread exits.
Fix: Send errors async and shutdown afterwards
In some cases the program exits before the error can be sent. This change ensures the error is sent asynchronously and shuts down the executor when the thread exits.