Adds some exception handling around cert paths