Added try catch around purge