Copied files to PartieB
Added socket close