safe stat when computing file size
Catch any exceptions from failing to open file