rename terminal state from CANCELED to CLOSED (#18)