What makes you think the case was closed? If he was taken into custody, it means there was an outstanding warrant for his arrest and I don't see a Judge releasing him on OR. You need to hire an attorney.
It is typical that when an active warrant is issued for a person, that the case status is listed as "inactive" on CPCMS. However, once that person is picked up and incarcerated pending his Gagnon II hearing, the case status will be listed as closed since the person has already been convicted of one or more offenses. The case would only be "active" if defendant were awaiting trial on the case.