fixed load timeout issue when socket closes prematurely