note this fixes a crash on shutdown that both Andrzej and Philip were seeing in interface.