commit minor changes

closing connections and sockets