Proper vApp startup and shutdown