make sure we close sockets