changed exited with errors to warning; updated empty input file check