this unpleasant task completed , he turned back for the hotel in which he had taken a room ; he had invited riley and gibbs along with several other acquaintances to join him for dinner , in recompense of earlier hospitality from them .