  	if (failed > 0)
  		return (1);
 +		
-+	xo_close_container("iscsi-information");
++	xo_close_container("iscsictl");
 +	xo_finish();
  	return (0);
  }
-diff -rud /usr/src/usr.bin/iscsictl/periphs.c ./periphs.c
+diff -dur /usr/src/usr.bin/iscsictl/periphs.c ./periphs.c
 --- /usr/src/usr.bin/iscsictl/periphs.c	2015-03-06 08:54:51.814319000 +0100
-+++ ./periphs.c	2015-03-07 20:38:42.000000000 +0100
++++ ./periphs.c	2015-03-08 18:18:47.000000000 +0100
 @@ -58,6 +58,7 @@
  #include <cam/scsi/smp_all.h>
  #include <cam/ata/ata_all.h>

-
+	
+	argc = xo_parse_args(argc, argv);
+	xo_open_container("iscsi-information");
+	
 	while ((ch = getopt(argc, argv, "AMRLac:d:i:n:p:t:u:s:v")) != -1) {
 		switch (ch) {

 					periph_result->periph_name,
 					periph_result->unit_number);
+				xo_close_instance("lun");
+				lun_no++;
 
 				break;
 			}
