Warn if can't set instead of panic.
Merge commit '6bf2ca320177b352b0a1a7e0f5279de054baa022'