Socket Hang up exception occurs when scripts starts execution

Hi,

On running the scripts frequently im facing a crash issue.The log stats that socket hang up and ui automator is off. This is been observed frequently. can anyone help me out.