This is from the CME website:
Trading terminates on the fourth business day prior to the underlying futures delivery month. If the expiration day falls on a Friday or immediately prior to an Exchange holiday, expiration will occur on the previous business day.