stop cache on server stop. Closes #2003