fix crash on shutdown of interface