added idle thread checking to TransactionManager