avoid close race
start fixing lockio