I've got a function which calls itself once every 60 seconds. If the user logs out, this looping function continues to run and src continues to appear valid. I thought I had this scenario covered by performing a del(src) at Logout() but the del(src) appears to be causing a crash. Maybe this looping function is related to this crash?
Regardless, I wanted to get some best practice feedback for how to handle an infinite loop and users logging out.