The criminal law of our country stipulates: discontinuance of a crime is an automatic abandonment of the crime or an automatic and effective prevention of its consequences in the criminal activity.
According to the above definition, which of the following is the discontinuance of a crime?
A sneaked into B's house to steal something, and suddenly heard the sound of a door next to him, mistakenly thought he was found, and fled.