handle ioerror for closed eventsources also