Better handling of errors coming from cpr.

Ensure that tests pass.
Bump version.