Fixed error for missing cache on purge

Added try/catch round Cache::purge()