[Error Code] IMAP Error: stream error - socket could not be read or written [Relevant Links] Parellel Processing [Explanation] 
This usually is related to timeout and connection issues. GAMME retries the migration up to 10 times before it halts. The way to resolve this is to reduce the batches of migrations you are running at one time, increase the speed of your network or increase the connection to external networks.