Or move your departure to D29 so that you have some margin for cancellations/delays.
PS: In case of a delay (not cancellation), as long as you clear exit immigration before midnight you should be fine irrespective of when the flight actually departs.
PPS: What airline/route is this? Might be useful to track on FR24 or elsewhere about delay/cancellation probability in recent times...