Minor: catch exception in cache clean an used .size() instead of get()