fixes leak of GenericThread and also fixes crash in octree servers on client disconnect