bitcoin/bitcoin — pull request #1381 by jgarzik (2012-05-22 18:24:34+00:00)
Title: Prevent crashes due to missing or corrupted database records

Any problems seen during deserialization will throw an uncaught
exception, crashing the entire bitcoin process. Properly return an
error instead, so that we may at least log the error and gracefully
shutdown other portions of the app.