Log error when chdir fails.