Added a more intensive shutdown process that explictly kills the event loop and closes it. If there are still slow shutdown errors I will be very surprised.