Waiting before writing may not help either, the write command may be locking up.