Fix for referencing exceptions in Curl services