fix syntax on closing threads. Remove bad test