migrated over to new metho of passing token for closing task