Interesting article here: How to Talk to a Professor.
Here is my favorite:
5. Ending the conversation can be tricky. Some professors will wrap things up for you, while others will be happy to just keep talking. In other words, a signal that you’re “dismissed” may not be coming. So don’t hesitate to take the initiative in bringing the conversation to an end, especially if you have other obligations.