clean up vhosts and endpoints when container shuts down and starts up