added a call of mysql_close on the destructor.