Description
In REEF-1464 we found out that IMRU task cancellation doesn't work properly if the task is in TCP connection establishment phase.
Instead of task stopping fast, it goes through all the connection retries even though the task it's trying to connect to
might be already closed. This might take considerable time, depending on settings of MaxConnectionRetry and SleepTime.
We need to fix this so that task will get cancelled faster even if task is in TCP connection establishment phase.
To do this, we need to investigate retry policies which can be used in RemoteConnectionRetryHandler.