Fast-paced finish leaves Warwickshire floored at Trent Bridge