Catch some other exceptions that could occur.