settings/base: Check for errors when creating .secrets directory

refs #16269