join thread to keep program running