* release resources when thread is done * add white space * add white space Co-authored-by: deanlee <deanlee3@gmail.com>