Tense finish at Bristol where Derbyshire need 38 to win with three wickets left and nine overs to go.