Dealing with miscarriage

What do you do when a pregnancy is abruptly terminated? When something that hasn't yet fully settled in us, but to which we are already so attached, is taken away from us unexpectedly, without any warning or explanation... How do we deal with this fact and its effects? How do we understand, accept and live with a miscarriage?