CSharp: Close the WebResponse if we throw an ApiException
CSharp: Add optional api constructor argument to set the basePath