Actually I get this if I close a channel or custom window too.

It seems to be an issue when you close a window rather than when you switch away from a DCC window.