YumexServer: close the history after a history command

by default YumBase keeps the history database open (and locked) such that
after viewing the history, yum install xy failed with
	sqlite3.OperationalError: database is locked