Remove unneeded repositories definitions.
Added logging of exceptions.