You have 5 hours to complete the exam. If you finish early, you can manually submit the exam. When the 5 hours end, the exam automatically submits. If the exam automatically submits, it doesn't mean that you failed the exam.