Possible fix for java.nio.channels.ClosedByInterruptException exception when closing a publisher.