Closing tab kills contained buffers