joinAtomicallyWithMask, and a potential resource leak in http-client