Fixed jittery lag and client closing issues