Mer: Properly check if VM is running headless on exit