update loop, add better windows timers, fix closing queue