only send in open sockets, adding close method