Socket.flush() shouldn't propagate exceptions from sys.net.Socket, but t...

...ransform them into IOError

Socket.onFrame() shouldn't throw errors that won't be able to be catched when called flush(), but it should dispatch an IOErrorEvent
This should avoid crashing the application without the ability to recover when connecting and writing to an address that is not listening