graceful teardown of cache
Merge pull request #3822 from owncloud/graceful_teardown_of_cache

graceful teardown of cache