make sure the goal thread is not running before consulting the program