Is there a way to stop closing a ticket that has open tasks

Is there a way to stop closing a ticket that has open tasks

We want to be able to prevent a ticket from being closed if there is an open task associated to that ticket. I don't see a setting for that.