Ignore more exceptions. Fixes #351