     };
 
     if(local.sessionScopeExists) {
-        var fwString = "";
+        fwString = "";
         if( isDefined("client")) {
             if(structkeyExists(session, "cfid") )      fwString &= "CFID=" & client.CFID;
             if(structkeyExists(session, "CFToken") )   fwString &= "<br/>CFToken=" & client.CFToken;

        frameworkSnapshot["Coldfusion ID"] = fwString;
    }

    var databaseInfo = {};
    if( (
            isStruct( oException.getExceptionStruct() )
            OR findNoCase( "DatabaseQueryException", getMetadata( oException.getExceptionStruct() ).getName() )
          ) AND findnocase( "database", oException.getType() )
    ){
        var databaseInfo = {
          "SQL State": oException.getSQLState(),
          "NativeErrorCode": oException.getNativeErrorCode(),
          "SQL Sent": oException.getSQL(),
          "Driver Error Message": oException.getqueryError(),
          "Name-Value Pairs": oException.getWhere(),
        };

    }

    catch( any e ){
        local.thisInetHost = "localhost";
    }
    EventDetails = {
        "Error Code":        (oException.getErrorCode() != 0) ? oException.getErrorCode() : "",
        "Type":              oException.gettype(),
        "Extended Info":     (oException.getExtendedInfo() != "") ? oException.getExtendedInfo() : "",
