Bug fixes and error fixes.

logging config has to happen before creating a logger.
And it's better not to proceed if the remote location can not be
accessed.
Placed some console prints and moved renaming to loop.

This way the time is included in the console output.
Keep track of the files that failed to be renamed.