ten seconds to wait on threads shutting down