add recovery for EOF to avoid unecessary disconnections