Remove waring "ResourceWarning: unclosed <socket.socket...."