Restore the previous api client in teardown block