purge log when error occured