It is rude to leave when people are speaking
Jerry is working at his desk with a chatty coworker pops in to chat.
Jerry wants to get his work done.
Jerry gets frustrated with his coworker's chatting and asks if they can talk later, so he can work.
Jerry gets frustrated with his coworker's chatting and storms out of the office.
Jerry's coworker understands and goes back to their own work.
Jerry's coworker feels insulted and hurt.