; (B) until the alien is removed, if the Secretary certifies in writing— (i) in consultation with the Secretary of Health and Human Services, that the alien has a highly contagious disease that poses a threat to public safety; (ii) after receipt of a written recommendation from the Secretary of State, that release of the alien is likely to have serious adverse foreign policy consequences for the United States; (iii) based on information available to the Secretary (including classified, sensitive, or other information, and without regard to the grounds upon which the alien was ordered removed), that there is reason to believe that the release of the alien would threaten the national security of the United States; or (iv) that the release of the alien will threaten the safety of the community or any person, conditions of release cannot reasonably be expected to ensure the safety of the community or any person, and either— (I) the alien has been convicted of 1 or more aggravated felonies (as defined in section 101(a)(43)), 1 or more crimes identified by the Secretary by regulation, or 1 or more attempts or conspiracies to commit any such aggravated felonies or such identified crimes, provided that the aggregate term of imprisonment for such attempts or conspiracies is at least 5 years; or (II) the alien has committed 1 or more violent offenses (but not including a purely political offense) and, because of a mental condition or personality disorder and behavior associated with that condition or disorder, the alien is likely to engage in acts of violence in the future; or (v) that the release of the alien will threaten the safety of the community or any person, conditions of release cannot reasonably be expected to ensure the safety of the community or any person, and the alien has been convicted of at least one aggravated felony (as defined in section 101(a)(43))