Clean variable in case of exception.