Adds exception logging to retrieve