vm_test: Make sure to stop the mock before to close VM sockets
vm_test: Make sure to stop the mock before to close VM sockets

Because of the recent changes from the proxy combined with the ones
from virtcontainers library, we have to stop the hyperstart/VM mock
before to try to close the communication sockets previously opened.

Indeed, in order to prevent from race condition when closing sockets,
we make sure the connection is ended from the other end of the pipe
instead of forcing on our end.

Signed-off-by: Sebastien Boeuf <90b401417360b1924ef3f520ddee932686110f85@intel.com>

dlespiau/clearcontainers-proxy,dlespiau/proxy,clearcontainers/proxy,clearcontainers/proxy,dlespiau/proxy,dlespiau/clearcontainers-proxy