async exceptions for closeClient method