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.