Explicitly stat file.
Unify error logging.