explicitely end with Enumerator.eof to get clsoe event in javascript