Wait also for the active TCP threads on shutdown