Added (a half-working) /close: destroy the buffer and part the channel if needed