This occurs mainly when players are using a third-party program. To keep LOL up and running, you'll have to disable the third-party programs.