I haven't found a use case for recording macros while in a package-menu but I surmise that's a rare-er case than trying to quit out of it.