disconnecting with error on invalid frame headers