finish asych write, deadlock bug.