fix (bug 23571)

fix
by
VG
(fixes bug 23571)

:

Stop timer thread on database shutdown.