Improved logging of rare errors.
Merge pull request #72 from arcusfelis/arc-better-logging

Improved logging of rare errors.