I would argue that if your team delivered good stuff, mostly on schedule, and your team was happy, then you were good at being a manager. The company failing despite your team deliver quality product hints that there was probably a flaw in strategic vision or external market factors.
Enjoying the role is another thing though.