Add terminate_reason/0 type