Improve ClosedConnection exception handling

when dispatching frame