If the correctness of the flush_thread_count matters, it should be in the finally, an exception could result in it not being decremented.