Check errors in NewTLSClient constructor

The errors returned from the functions **AddRootCA** and **saveConfig** in **NewTLSClient** constructor are not being checked.