Deal with some more exceptions that can occur.