diff --git a/_examples/chat/main.go b/_examples/chat/main.go
index <HASH>..<HASH> 100644
--- a/_examples/chat/main.go
+++ b/_examples/chat/main.go
@@ -35,6 +35,7 @@ func main() {
 		c := ws.Upgrade(w, r)
 		if err := c.Err(); err != nil {
 			http.Error(w, fmt.Sprintf("websocket error: %v\n", err), http.StatusServiceUnavailable)
+			return
 		}
 
 		// handle the connection.
fix example: exit from handler forgotten