Left the refrigerator door slightly open not fully closed the whole night

refrigerator door not fully closed or forgot to close it fully discard all foods or check ensure it's good
refrigerator door not fully closed or forgot to close it fully discard all foods or check ensure it's good

Last night, I went to sleep and didn’t know the refrigerator door was slightly open or not fully closed. This morning when I woke up, open the refrigerator and I can smell the warm food, I was warm because of the light bulb producing heat the whole night, and no match for the refrigerator cool cold air producing the whole night, although the weather was chilly. The milk seems to be still good, I might have to dump the soup. It’s one of those thing that will happen once in a while, and make me think of a way to prevent, I would like to see the next generation refrigerator with alarm or warning if left open or not fully close for more than certain time frame such as 5mins ….