Worker respond with function - transfer local scope

Signed-off-by: selmeci <selmeci.roman@gmail.com>
Bug fix: return function have to specify all arguments

Signed-off-by: selmeci <selmeci.roman@gmail.com>