fix(server): memory leak