Adds support for configurable retry and recovery exceptions. Addresses issue #38.