Fix for termination problems when no interfaces found - bug #5267.