caught getStDists exception when routino fails