FIX: ws error event

@yawnt, I just found this bug in my code right after you merged #470