added additional error handling on website cloner and template restore functionality