Fixed #167

Added two's complement masking for the close frame's reason code.
Merge pull request #169 from paulpdaniels/patch-1

Fixed #167