Wrapped the methods that save the customer data in try-catch blocks to make the process more error-proof: