Fix for misplaced sleep() cause 100% on FIFO writer exit.   (Thanks to Jaun Manuel!)