Rename threads and handles