Judge upholds termination of ex-Corrections officer who refu