Register the ehCache ShutdownListener, so that ehCache shuts down cleanly.

Register the ehCache ShutdownListener, so that ehCache shuts down cleanly.

This prevents problems when persistent disk stores or distributed caching are used. See http://ehcache.org/documentation/operations/shutdown