Replaced printStackTrace() with error logging when copying template
folders.