Support optional .trapexit callback
Avoid some exceptions
Report WebSocketConnection crashes to user