discard buffers on handle_close