ui: VM resize view fix

prevent redudant onClose call to counteract inconsistent resize view
state.