Make sure that all script entities are removed once finished