def close(self):
		"""
		Closes the internal connection.
		"""
		self.cancel()
		self.logger.debug("Closing AMQP connection")
		try:
			self.connection.close()
		except Exception, eee:
			self.logger.warning("Received an error while trying to close AMQP connection: " + str(eee))