Rumored to be a candidate to be dealt before Wednesday's NHL trade deadline, Hemsky scored two goals and the Oilers snapped a three-game losing streak with a 3-2 victory over the Ottawa Senators on Tuesday night.
Hemsky, who has spent all 11 seasons in the NHL with Edmonton, said he just tried to make sure he went out well, if his time with the club is indeed up at the deadline.
''It is hard not to think about it when you are hearing all the rumors, but I have been in this situation for the last four years. I just tried to play my game and not think about it. It was fun.
''It was definitely a nice game for me if it was my last one here, but it is still sad if it comes to an end. It is what it is. It is a business. We'll see what happens.''
Oilers forward Jordan Eberle, who had the other goal in the win, said it was great to see the veteran forward have such a strong game during trying circumstances.
''It's got to be tough for him,'' he said. ''For the past four years since I have been here, his name has been on the list of guys on the trade block. That can't be easy, especially with so much social media now. For him to come out and give a performance like that at a time like this, it is awesome.''
''There is not much more that he could have done tonight,'' Oilers coach Dallas Eakins said.
''He was absolutely excellent. He was energetic and entertaining to watch. I found my eyes fixated on him a lot. I thought he was great from the initial drop of the puck.
Taylor Hall had a pair of assists for the Oilers, who remain in second to last place in the NHL despite a 6-2-2 record in their past 10 games.
''We started well and then we started trading chances with them and we really couldn't keep up,'' Karlsson said. ''Their goalie obviously made some huge saves for them and we couldn't put it in the net obviously. I think we could have played a little bit smarter.''
Spezza is hopeful the loss didn't turn the Sens from buyers into sellers on deadline day.
''It's a very disappointing loss,'' he said. ''We missed a good opportunity to make up some points. We saw that Detroit loss and not being able to win this game is frustrating.
''We got the first one and then we were a little bit flat through the first period. You have to give them credit too, they defended well. But I still think we needed to find a better way to stay in that game.''
Ottawa opened the scoring at 5:22 of the first. Milan Michalek sent a backhand pass from behind the net through a few bodies in front to Spezza, who was able to beat Edmonton goalie Ben Scrivens with a quick shot for his 16th of the season.
Edmonton tied the game at 14:30 as Nail Yakupov hit Hemsky with a long pass on the power play. Hemsky drove into the Senators zone before cutting in on net and beat Ottawa goalie Craig Anderson with a backhand deke.
It was Hemsky's first goal since Jan. 12.
Edmonton had a great opportunity to take the lead seven minutes into the second period as Hall picked off a Colin Greening pass and went in alone, beating Anderson with a high shot but ringing the puck off the crossbar.
Hemsky wasn't done yet. With 11 minutes left in the middle period, Sam Gagner hit Hemsky with a drop pass and he picked the corner with a shot for his ninth of the season while Hall screened Anderson in front of the net.
Scrivens kept it 2-1 with four minutes left in the second as he came across quickly to stop Bobby Ryan on an attempt to deflect a shot from in tight.
Edmonton made it 3-1 at 4:26 of the third period as a Boyd Gordon shot deflected to Eberle at the side of the net and he had an easy tap-in for his 20th of the season.
Right after Edmonton's Nick Schultz fished a puck out of harm's way from behind Scrivens, the Senators made it a one-goal game with just under three minutes left to play. Karlsson walked around a pair of defenders and slipped a shot under the Oilers goalie's arm.
Ottawa pulled Anderson late, but couldn't get the equalizer.
The Senators play the third game of a four-game road trip in Calgary on Wednesday. The Oilers next play host to the New York Islanders on Thursday.
Notes: Both teams were active on the day before Wednesday's NHL trade deadline. Edmonton made a couple of moves involving goalies as it shipped Ilya Bryzgalov to the Minnesota Wild for a fourth-round pick and then acquired goalie Viktor Fasth from the Anaheim Ducks for third- and fifth-round draft picks. As a result the Oilers had to make a call out to the University of Alberta Golden Bears to utilize their goalie, Sherwood Park's Kurtis Mucha, as a backup. There was a social media outcry before the game urging the Oilers to give the one-game backup opportunity to Team Canada's women's Olympic two-time gold medalist Shannon Szabados. ... The Senators also made a trade on Tuesday, sending left wing Jeff Costello to Vancouver in exchange for defenseman Patrick Mullen. ... Both teams also placed players on the waiver wire, as the Senators made forward Cory Conacher and defenseman Joe Corvo available and Edmonton waived defenseman Corey Potter ... It was the second and final meeting between the two teams, with Edmonton winning the first matchup, 3-1 in Ottawa on Oct. 19. ... Nail Yakupov returned to the lineup after missing one game with a foot injury.