Fixes #1 , changed the endRun() requiremnt for -1 earlier. EndRun() allows for the tick to end, before it really closes it, thats the reason why there was an additional entry