remove generics from TaskHandler<T>