General Motors has shut down operations in Egypt due to the violence in the country.