Added end_reason to contract_view.

- [FIX] set end_date on contract cancellation