Performing the nightly build in windows local pc some time the network is getting disconnected for few seconds

when a performing nightly build job in windows local pc some times LAN connection is not stable for few seconds at that time i faced a given below error
Cannot contact PC_Name: java.lang.InterruptedException.
After this error job is running continuously until we aborted the job.If it is continusoly running the next build also failed.
pls give me the solution for this Cannot contact PC_Name: java.lang.InterruptedException.