Verify close code
Return error on invalid payload in close frame
Valid close codes include range 3000..4999