The public safety exception to Miranda exists if a threat exists to third parties.
Public Safety exception it allows into proof an otherwise suppressible statement made by a defendant relating to gathering data that the police needed at the time it was made in order to protect the public.