Changed delete all interfaces function's error handling.