Reval hs2error. Because, you detect error by instanceof operator. Maybe caused from connection,
err object is match HS2Error.ConnectionError.