<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_handler(self, handler):
 """Detach active handler from the session `handler` Handler to remove """

        super(Session, self).remove_handler(handler)

        self.promote()
        self.stop_heartbeat()