Promise value not set when exiting simulation

hello guys, im using a TPromise to get the results from a calculation on an async thread, everything works fine however when i stop simulating i get an error saying my promise did not set a value. In the class destructor i check if the future has its value set and if not i set it just in case but i am still getting this error. does anyone have any idea how to fix this. thanks