During the call to the server we might get an InterruptedException while we are waiting for the answer from the CMR. This would result in the Exception on the Client, causing the connection to the server to be closed.
Now I am not sure when are there interruptions sent, but I would guess that at this point interruption is not expected by the client and that it's a result of operations before class loading/sending.
We should solve this. Unfortunately, for us this could mean that when we are interrupted we would not know where it came from. Still we should not close the connection in any case, even if it means that then we are ignoring situations when we should close it.
Code place that is responsible for that:
One of the stacks (I have seen simillar one already on machine):