Improved the error message when destroying a container.

Review: https://reviews.apache.org/r/25344