Waits on file error