Controlled Stability of Molecular Junctions