I've done some testing and when using $fread and it encounters the end of file, the entire execution of the script terminates w/o warning.