update lastException