Catch some exceptions.