Fixed sys.exit problem and added lambda function to stop Timer from removing elements from list before creating the timer object