City finishes on Wright side of thriller