Fix resource management when process end

Change-Id: I2082bf27e26fd2ac8048910b326241079c040a30
Merge topic 'vtkweb-launcher' into master

e472fc34 Fix resource management when process end