Social Interactions in the Presence of Community Shock