call uploadLog from teardown()