Closed sockets after commits so prevent clog up