<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def terminate(self):
 """ Terminate vm. """

        logging.debug('Terminate: %s', self)
        self.state = VmState.TERMINATED
        return await self.manager.terminate_vm(self.id)