Move HR element to the containing function to ensure it appears despite exceptions