catch some more exceptions, to be safe