improved unique_str check, added check for parent thread.is_alive, validation for metric name