Fixed dying thread. Servers exit cleanly now