'Helper to run clean up tasks after instances are removed.'

def post_terminate_cleanup(self):

    for (fn, args) in self.post_terminate_cleanups:
        fn(*args)
        time.sleep(10)
    if self.vpc:
        self.api.delete_vpc(self.vpc.id)
