Add wfProfileOut call before exception