added coroutine_return function and ad-hoc fix for may_pool_task methid in task backend