Flight crew promptly took action to ensure the safety of all. Flight UX045 was diverted to Natal airport in Brazil, for emergency landing.