Check_MK Werk 3994: windows agent: fixed memory and file handle leak when using windows eventlog