Automatic shut off when iron is left unattended