Properly handle closed and already matched exchanges from duplicate work