Added function to kill all buffers.