<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def shutdown(self):
 """Perform cleanup! We're goin' down!!!"""

        for ware in self.middleware:
            ware.preshutdown()
            self._shutdown()
            ware.postshutdown()