<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 stop_async(self):
 """ Terminiates the partition manger. """

        self.cancellation_token.cancel()
        if self.run_task and not self.run_task.done():
            await self.run_task