<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def exit(self):
 """ Cleanup pid file at exit. """

        self.logger.warning("Stopping daemon.")
        os.remove(self.pid)
        sys.exit(0)