Added SSL options to ignore CA errors

Also added catch for curl errors