CLOUDIFY-1896 Fixed test tcp connection cleanup