save task to global storage to prevent GC for it