add server exit process