#9: handle lost TCP connections