If you want logout controller to execute then don't use a time limit in the Threads Group.
If you really need to terminate your test within 1 hour then rampup logout controller and decrement estimated logout total time in runtime controller duration. Don't expect it to be 1 hour exactly. There are surely other ways to achieve your goal.
