getting rid of while True's for while alives: for cleaner shutdowns.