Python Kill Thread On Exit