Improve diagnostic output when an exception inside onSocketEvent in the libevent driver occurs.