Add missing spec for promise rejection when client is closed