Notwithstanding any provisions of this chapter to the contrary, the animal control department may refuse to release any animal impounded in the animal shelter for rabies or contagious disease quarantine or for use as evidence in a criminal prosecution, for any time period as the animal control department may determine.