Implemented logic to handle expired view exception.