Resolve AttributeError in restore_ignored_signals