Update for Vault 6 support

Build against Vault 6 API. Also prevent an UnauthorizedAccessException from being thrown on occasion.