<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delayed_close(self):
 """ Delayed close - won't close immediately, but on the next reactor loop. """

        self.state = SESSION_STATE.CLOSING
        reactor.callLater(0, self.close)