def end(self):
		''' End the session.  Flush all pending operations and ending the
			*pymongo* request'''
		self.cache = {}
		if self.transactions:
			raise TransactionException('Tried to end session with an open '
									   'transaction')
		if not PYMONGO_3:
			self.db.connection.end_request()
End the session.  Flush all pending operations and ending the
			*pymongo* request