Fix assets being kept around after editor closes