Fixed ExternalContainerizer wait behavior when getting destroyed.

When 'wait' was terminated by 'destroy', it is getting SIGKILLed. We
need to test for that specific case and setup the appropriate
Termination message accordingly as it can not get delivered by the
external containerizer program itself.

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