send before Close() if pending exist
recover if send failed with runtime error