Added 'End' method to get a thread end