Wait a little bit when EOF is encountered and file is still open for writing

Reduce the amount of retries, slightly lower CPU usage