bugfix: multiple retry when client is closed