Two-run single caps a four-run ninth and a 5-4 loss