bundle and close all buffers