retry when resource busy (closes #6)
don't write before open success
test