cleaning socket creation on parent / child process