added cancellation_token for thread exit
made cancellation token a separate class, fixed typo in f8test configs
Added cancellation token method as a parameter to thread construction