That usually has nothing to do with the script, either it's mirror that's being annoying or your computers CPU is going crazy high and it can't follow up.
When things like this start to happen, just close all clients and restart them all. Make sure you didn't login before hooking mirror client