Ross County win 5-4 on penalties and avoid relegation.