Mass Panic and Social Attachment: The Dynamics of Human Behavior