Polyline method improved.
It deletes polylin when sandbox disconnects