SECURITY UPDATE: buffer overflow & uninitialized memory
close unused sockets