close stream to ping url