Log errors rather than throwing them