fix send after close