Refactor spec execution for stop the timer in one place