be more specific about the exceptions we catch (this is helpful for e.g. visual studio debugging)