Fix ilogcp test.
Handle standard exceptions in ilogcp.