cec: ensure that the ackmask is always set to 0 when closing the connection and that...