Catching standard exceptions.