Fixes issue #10 which leaves artifacts in the container after shutdown has been triggered.