Fixed a bug where an exception was not being propogated.

The KeyValueCache used to give a generic message about failure, but not the actual message that was causing the error. This has been added.