prevent timeouts in removeAllVertices method