modified AFTER_TESTING_BLOCK to include disconnect