Catching more exceptions.