Added container protection for survival

Added container protection for survival and improved the API for
container protection