Add server close functions, etc.