Return early in case of opendir error, log result to console