Graceful termination when one end closes.