Couldn't you have that more easily by simply extending the session timeout period?
Quiz
What happens if a session times out in the middle of a quiz?
הדיון ננעל, כך שלא ניתן יותר להגיב אליו.