thread needs to be closed!