fix crash on shutdown of interface
Merge pull request #1672 from ZappoMan/bugfixes

fix crash on shutdown of interface