It would have been perfect if Scotty would have said qapla to Worf or Worf said it to him and Scotty replied back and they did an appropriate Klingon handshake and perhaps hug as he said his goodbyes to the contemporary Enterprise crew as he was leaving in the shuttle craft at the end of the episode.