handle 'rescue' with function body