Clear process for erorr and expiration