Cannot contact slave pc: java.lang.InterruptedException

In have checkout the code from the gerrit is done.
after that when i build the code I had faced the cannot contact agent pc: java.lang.InterruptedExceptioncmd not for every time. Some time particularly when i using the nightly build faced. once i aborted the job after from the next time job is running successfully.

We have the same trouble on our cluster. Any advice with that?