You seem to be closing twice, here and in `hijackWebsocket`.

Also, `Close` returns an error as well.