cleanup daemon threads