<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close_connection(self):
 """This method closes the connection to RabbitMQ."""

        self._logger.info('Closing connection')
        self._closing = True
        self._connection.close()