<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(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))