Added close sockets back in.