<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 next ioloop tick."""

        self.state = CLOSING
        self.server.io_loop.add_callback(self.close)