Handle empty or incorrect file gracefully and report to user.