Fix intermittent hang in UI test tearDown

The super.tearDown sometimes hangs when truncating tables because of lingering pending transactions with locks on those tables. Kill them to avoid deadlock!
Add sleep to prevent test failure