implement release func in Task class