<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_close_down_mode(self, mode, onerror = None):
 """Control what will happen with the client's resources at connection close. The default is X.DestroyAll, the other values are X.RetainPermanent and X.RetainTemporary."""

        request.SetCloseDownMode(display = self.display,
                                 onerror = onerror,
                                 mode = mode)