refine the code of free server context

refine the code of free server context