That error occurs when /close is used to close DCC fserve/chat windows, see this post just below yours for a work around.