close dat socket
Close more sockets and pass more implementation details