In SE, cloning is done using clone brush method. This has led to redundant containers on a spaceship every time it is cloned by SE, due to your created_entity handler creating a new container whenever a loader + container is cloned. Due to the impossibility of knowing whether an area or only an entity is cloned, I suggest listening to cloned container events and destroy cloned container whenever its cloning event is received.