what happens after emergency custody is granted