Controversy surrounds closure of juvenile prison