Adds exception logging to retrieve
Merge pull request #1207 from lukecampbell/retrieve-log

Adds exception logging to retrieve