diff --git a/doc/contributions.txt b/doc/contributions.txt
index a024815b8e327cd56ee1816d1c0f4fd0c30b3702..ed13204b00c99c00e6be1aa3f60fa5930c4e6ea0 100644
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -850,6 +850,7 @@ Nicholaz Beresford
 Nick Rhodes
 Nicky Perian
 	OPEN-1
+	OPEN-138
 	STORM-1087
 	STORM-1090
 Nicoladie Gymnast
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index bc7f5a9744a326d68fa051757296eedb1f4e1d32..f46cedfc4be797490fcdecf9b0bef590257f3292 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -7533,11 +7533,15 @@ void LLVOAvatar::dumpArchetypeXML( void* )
 {
 	LLAPRFile outfile;
 	outfile.open(gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,"new archetype.xml"), LL_APR_WB );
-	apr_file_t* file = outfile.getFileHandle() ;
+	apr_file_t* file = outfile.getFileHandle();
 	if (!file)
 	{
 		return;
 	}
+	else
+	{
+		llinfos << "xmlfile write handle obtained : " << gDirUtilp->getExpandedFilename(LL_PATH_CHARACTER,"new archetype.xml") << llendl;
+	}
 
 	apr_file_printf( file, "<?xml version=\"1.0\" encoding=\"US-ASCII\" standalone=\"yes\"?>\n" );
 	apr_file_printf( file, "<linden_genepool version=\"1.0\">\n" );
@@ -7577,6 +7581,11 @@ void LLVOAvatar::dumpArchetypeXML( void* )
 	}
 	apr_file_printf( file, "\t</archetype>\n" );
 	apr_file_printf( file, "\n</linden_genepool>\n" );
+	//explictly close the file if it is still open which it should be
+	if (file)
+	{
+		outfile.close();
+	}
 }