Make nginx termination be 20sec after idle as before, fixing output to be perfect json including cost model.