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