Handle Errno #9 (bad file descriptor) in Core and trigger event_disconnected