Play nicely with manual excon stubs.

Fixes #199.