Clear timer regardless of exit code