waitForBytesWritten removed