thread.join(600) would make it die after 5 min