socket hangup fix