Issue #155. Refresh error handling.

Fixed reported crash on refresh.

Signed-off-by: Matt Isaacs <misaacs@gilt.com>