I was setting a bad precedent for my sons when they would try to talk to me and I'd say "I'm working. not right now." Then it becomes ambiguous whether they can talk to me or not. Not good for kids IMO.
Now when I come home i get the biggest hugs you've ever seen and we start playing.