# How to close Viewport on EUW properly (BP in UE5.5.3)

**URL:** <https://forums.unrealengine.com/t/how-to-close-viewport-on-euw-properly-bp-in-ue5-5-3/2388497>\
**Category:** Editor Scripting\
**Tags:** editor-utility-widge, unreal-engine, Blueprint, question\
**Created:** [March 13, 2025, 4:47pm UTC](https://forums.unrealengine.com/t/how-to-close-viewport-on-euw-properly-bp-in-ue5-5-3/2388497 "2025-03-13T16:47:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HalfX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HalfX](https://forums.unrealengine.com/u/HalfX)\
**Post date:** [March 13, 2025, 4:47pm UTC](https://forums.unrealengine.com/t/how-to-close-viewport-on-euw-properly-bp-in-ue5-5-3/2388497/1 "2025-03-13T16:47:55Z")

</div>

I am creating an `Editor Utility Widget` and constructing a `Viewport` as child on a `SizeBox` via Blueprint. When closing the window I’m getting a warning:

```auto
LogWorld: Warning: UWorld::CleanupWorld called on a world that has begun play, missing call to EndPlay (World_1)

```

**What code is needed to close this EUW-window properly without getting this warning?** As far as I understand the viewport data stays in memory when not close correctly. I also spawned an actor inside which created more warnings with any new launch. This I could solve with `Destroy Actor` on `Event Destruct`, but the quoted warning happens even on empty viewports and just increment the world number `(World_1)`.

It also makes no difference if I use a custom viewport blueprint class or not. Since `UMG.Viewport` is an experimental class, it could also be a bug, but it already exists since UE4.22 I read, so first I want to think it is my own failure.
