Active flag shows as true on closed records
The business rule 'mark closed' which is supposed to set active to false is no running because the condition fails.
Condition : new TaskStateUtil(current).runMarkClosed()
Create a dictionary override for this state field on the custom table and set the attribute for close state. If custom state field value for closed record is 10, then the attributes should be like below
Atttributes : close_states=10