Kodi goes to black screen after 3 hours

When I use the context menu to play all the movies in a folder on my Nas drive, after 3 hours it goes to black screen. I click ok on the amazon fire tv remote and I am then seeing the folders again from where I launched the movies. Same happens regardless of if I am playing 1 movie, listening to music files etc. I can restart the selection no problem and it will go black screen again after 3 hours. I have disabled the screensaver on aft and also on Kodi. I assume there is something else timing out? Not sure what to do now…?