Test returning rejected promise from close() of sink