Capture return when wrapped proxy function is called as a constructor.