what happens when a child is placed in protective custody