Fixed persistent threads, ungraceful disconnects, serialization errors and simplified the architecture.