If we confess our sins, He is faithful and righteous to forgive us our sins and to cleanse us from all unrighteousness.
But what if our hand is CAUGTH in the cookie jar?
We just happen to be sinning at the instant of our DEATH and do not get a CHANCE to confess and repent?
I think cookie snatching is only counted as a "venial" sin, so you may only get some extra time in that pretend place called Purgatory until your cookie swiping ways are behind you. ;o)