The role of nano-contacts in electrical transport through a molecular wire